package com.csi.juegoweb.web.backing.session;

public class test {
	public static void main(String[] args) {
		StringBuilder sql = new StringBuilder();
		String idUser = "66";
		sql.append(" select * from jos_users usert where usert.id in( ");
		sql.append(" select model.target as idUser from jos_community_activities model ");
		sql.append(" where model.actor='");
		sql.append(idUser);
		sql.append("' union ");
		sql.append(" select model.target as idUser from jos_community_activities model ");
		sql.append(" where model.actor='");
		sql.append(idUser + "' )");
		System.out.println(sql.toString());
	}
}
